package com.cskaoyan.service;

import com.cskaoyan.bean.MarketAd;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.param.CommonData;
import com.cskaoyan.bean.yangzihui.*;

/**
 * @author yangzihui
 * @Description
 * @Create 2022-06-26 14:28
 * @Version
 */
public interface AdService {
    CommonData query(BaseParam baseParam, String name, String content);

    MarketAd update(MarketAd marketAd);

    void delete(MarketAd marketAd);

    Integer selectGoodsId(NewMarketAd newMarketAd);

    ResponseOfNewMarketAd create(NewMarketAd newMarketAd);

    CouponData list(BaseParam baseParam, String name, Integer type, Integer status);

    Coupon add(NewCoupon newCoupon);

    void sub(Coupon coupon);

    CouponUserData listUser(BaseParam baseParam, Integer couponId, Integer status, Integer userId);

    FinalFinalCoupon modify(FinalCoupon finalCoupon);

    Integer selectTimeType(Integer id);

    Coupon read(Integer id);

    FinalCoupon newRead(Integer id);
}
